# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from base.base_page import BasePage
from selenium.webdriver.common.by import By
import time
from selenium import webdriver
import random


def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    driver = webdriver.Firefox()
    # driver.get("https://www.taobao.com/")
    # time.sleep(3)
    #
    # driver.execute_script('window.scrollBy(0,100000)')
    # time.sleep(3)
    # driver.execute_script('window.scrollTo(0,0)')



# See PyCharm help at https://www.jetbrains.com/help/pycharm/
# https://item.taobao.com/item.htm    id=42053067233    scm=1007.34127.227518.0&pvid=9ef1b801-be8e-42f5-9540-27ad0f7c7a7c
def splitUrl(self,url:str):
    strs = url.split("?")
    strs = strs[1].split("&")
    return strs[0]
